package com.mapull.clone;

import lombok.Data;

/**
 * @author mapull
 */
@Data
public class Address implements Cloneable{
    /**
     * 住址编码
     */
    private String code;

    /**
     * 门牌号
     */
    private String houseNumber;

    @Override
    public Address clone() {
        try {
            Address clone = (Address) super.clone();
            // TODO: copy mutable state here, so the clone can't change the internals of the original
            return clone;
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
